import request from '@/utils/request'

// 查询高德行政区划列表
export function listAdmindivision(query) {
  return request({
    url: '/app/admindivision/list',
    method: 'get',
    params: query
  })
}

// 查询高德行政区划详细
export function getAdmindivision(id) {
  return request({
    url: '/app/admindivision/' + id,
    method: 'get'
  })
}

// 新增高德行政区划
export function addAdmindivision() {
  return request({
    url: '/app/admindivision/initData',
    method: 'get'
  })
}

// 修改高德行政区划
export function updateAdmindivision(data) {
  return request({
    url: '/app/admindivision',
    method: 'put',
    data: data
  })
}

// 删除高德行政区划
export function delAdmindivision(id) {
  return request({
    url: '/app/admindivision/' + id,
    method: 'delete'
  })
}
